<include file="Public:header"/>

<div id="wrap">
    <div id="left">
        <div class="position">当前位置:&nbsp;雅美装修咨询&amp;投诉&amp;建议&amp;留言</div>
        <div class="guestbook">
            <span class="title">雅美装修咨询、投诉、建议、留言</span>
            <ul>
                <form name="form1" method="post" action="__URL__/add">
                    <li><span>说明:</span>（<font color="#FF0000">*</font>）的输入框必须输入内容 </li>
                    <li><span>留言标题&nbsp;<font color="#FF0000">*</font></span><input type="text" name="title" size="62"></li>
                    <li><span>你的姓名&nbsp;<font color="#FF0000">*</font></span><input type="text" name="username" size="30"></li>
                    <li><span>电子邮箱&nbsp;<font color="#FF0000">*</font></span><input type="text" name="email" size="30"></li>
                    <li><span>QQ号码</span><input type="text" name="qq" size="30"></li>
                    <li><span>内容&nbsp;<font color="#FF0000">*</font></span><textarea name="content" rows="6" cols="50"></textarea></li>
                    <li><span>验证码</span><input type="text" name="verify" size="10">
                        <img src="__URL__/verify" alt="验证码" />（请输入图片中的数字）
                    </li>
                    <li><input type="submit" class="mybutton" name="add" value="提  交"></li>
                </form>
            </ul>
        </div>
        <div class="guestbook-list">
            <ul>
                <iterate name="list" id="row">
                    <li>
                        <div class="title">
                            <span class="subtitle">{$row['title']}</span>&nbsp;
	                    		[<span class="username">{$row['username']}</span>]&nbsp;留言于：
                            <span>{$row['addtime']|date='Y-m-d H:i:s',###}</span>
                        </div>
                        <div class="content">
                            <span class="content">留言：{$row['content']}</span>
                            <php>if($row['reply']!=''){</php>
                            <span class="content">回复：{$row['reply']}</span>
                            <php>}</php>
                        </div>
                        <div class="clear"></div>
                    </li>
                </iterate>
            </ul>
        </div>
        <div class="pagination">{$page}</div>        
        <div class="clear"></div>
    </div>

    <div id="right">
        <div class="category-title">
            <div class="catimg"><img src="../Public/images/data-cat.jpg" alt="资料分类" /></div>
        </div>
        <div class="category-nav"></div>
        <div class="category-list">
            <ul>
                <php>include(C("MYCACHE_PATH").'/datacat.php');</php>
                <php>foreach($datacat as $key=>$value){</php>
                <li><a href="__APP__/Data/index/catid/{$key}">{$value}</a></li>
                <php>}</php>
            </ul>
        </div>

        <div class="knowledge-title">
            <div class="annimg"><img src="../Public/images/knowledge.jpg" alt="装修须知" /></div>
            <div class="more"><a href="__APP__/Knowledge"><img src="../Public/images/more.gif" /></a></div>
        </div>
        <div class="knowledge-nav"></div>
        <div class="knowledge-list">
            <ul>
                <php>include(C('MYCACHE_PATH').'/knowledge.php');</php>
                <iterate name="knowledge" id="row">
                    <li><a href="__APP__/Knowledge/{$row['url']}">{$row['title']}</a></li>
                </iterate>
            </ul>
        </div>

        <div class="contactus">
            <a href="__APP__/Page/contactus.html"><img src="../Public/images/contactus.gif" alt="联系我们"></a>
        </div>                
        <div class="clear"></div>
    </div>
</div>

<include file="Public:footer"/>
